From: Stefan Monnier Date: Fri, 13 Sep 2002 16:20:01 +0000 (+0000) Subject: (define-derived-mode): Properly ignore unknown args. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~30589 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=c3c953757b4881367b661b91c1925e5013c14547;p=emacs.git (define-derived-mode): Properly ignore unknown args. --- diff --git a/lisp/derived.el b/lisp/derived.el index d11a58a19d5..0cb2fd2d57f 100644 --- a/lisp/derived.el +++ b/lisp/derived.el @@ -178,8 +178,8 @@ been generated automatically, with a reference to the keymap." (case (pop body) (:group (setq group (pop body))) (:abbrev-table (setq abbrev (pop body)) (setq declare-abbrev nil)) - (:syntax-table (setq syntax (pop body)) (setq declare-syntax nil)))) - + (:syntax-table (setq syntax (pop body)) (setq declare-syntax nil)) + (t (pop body)))) (setq docstring (derived-mode-make-docstring parent child docstring syntax abbrev))